package com.lins.storedisk.constant;

import lombok.Getter;

/**
 * 枚举类
 * @Author linshuo
 * @Date 2023/4/28 9:52
 */

@Getter
public enum MyEnum {

   /* public static final Integer OFF_LINE = 0; //离线
    public static final Integer ON_LINE = 1; //在线
    public static final Integer USER_DELETED = 2; //已经被删除/停用*/

    OFF_LINE("离线"),
    ON_LINE("在线"),
    USER_DELETED("已经被删除/停用"),

    IS_SHARE("共享"),
    NOT_SHARE("不共享"),
    FILE("文件"),
    FLODER("文件夹"),

    STATE("正常"),
    STATE_D("被删除"),
    STATE_COVER("被覆盖"),

    STOP("stop"),
    COVER("cover"),
    TIME("time"),
    ORDER("order"),
    RANDOM("random"),

    OTHER("其他");


    private String value;

    MyEnum(String value){
        this.value = value;
    }

    public String getValue(){
        return this.value;
    }


//    private String code;
//    private String msg;
//
//    MyEnum(String code, String msg) {
//        this.code = code;
//        this.msg = msg;
//    }
//
//    public String getCode(){
//        return this.code;
//    }
//
//    public String getMsg(){
//        return this.msg;
//    }
//
//    public static String getMsgByCode(String code) {
//        for (MyEnum myEnum : MyEnum.values()) {
//            if (myEnum.getCode() == code) {
//                return myEnum.getMsg();
//            }
//        }
//        return null;
//    }

}
